package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;

public final class callejero_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();

  private static java.util.List _jspx_dependants;

  private javax.el.ExpressionFactory _el_expressionfactory;
  private org.apache.AnnotationProcessor _jsp_annotationprocessor;

  public Object getDependants() {
    return _jspx_dependants;
  }

  public void _jspInit() {
    _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
    _jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
  }

  public void _jspDestroy() {
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;


    try {
      response.setContentType("text/html; charset=UTF-8");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			"error/errorpage.jsp", true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\r\n");
      out.write("\r\n");
      out.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">\r\n");
      out.write("\r\n");
      out.write("<!-- VALIDADO!! :-D -->\r\n");
      out.write("\r\n");
      out.write("<html xmlns=\"http://www.w3.org/1999/xhtml\">\r\n");
      out.write("  <head>\r\n");
      out.write("    <meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\"/>\r\n");
      out.write("    \r\n");
      out.write("     <link rel=\"stylesheet\" href=\"estilos/style.css\" type=\"text/css\" media=\"screen\" charset=\"utf-8\"/>\r\n");
      out.write("\t<script src =\"ajax/scriptaculous-js-1.8.1/lib/prototype.js\"  type=\"text/javascript\" charset=\"utf-8\"></script>\r\n");
      out.write("\t<script src =\"ajax/scriptaculous-js-1.8.1/src/effects.js\" type=\"text/javascript\" charset=\"utf-8\"></script>\r\n");
      out.write("\t<script src=\"ajax/ajax_utils.js\" type=\"text/javascript\" charset=\"utf-8\"></script>\r\n");
      out.write("\t<script src=\"ajax/ajax_login.js\" type=\"text/javascript\" charset=\"utf-8\"></script>\r\n");
      out.write("\t<script src=\"js/menu.js\" type=\"text/javascript\" charset=\"utf-8\"></script>\r\n");
      out.write("\r\n");
      out.write("\t<script src=\"http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAW6ZkayH6hhgMyC2y6LQx8xTlOAjHTmgj9z0QOzdQFV7VnifGuxSJsOzr3eQromRGXbLCHJKjeEnNNw\" type=\"text/javascript\">\r\n");
      out.write("   </script>\r\n");
      out.write("\t<script src=\"js/googlemaps.js\" type=\"text/javascript\" charset=\"utf-8\"></script>\r\n");
      out.write("\t<script src=\"ajax/ajax_utils.js\" type=\"text/javascript\" charset=\"utf-8\"></script>\r\n");
      out.write("\t<script src=\"ajax/ajax_login.js\" type=\"text/javascript\" charset=\"utf-8\"></script>\r\n");
      out.write("\t<script src=\"js/menu.js\" type=\"text/javascript\" charset=\"utf-8\"></script>\r\n");
      out.write("\t<title>Erasmus Help! - Callejero</title>\r\n");
      out.write("  </head>\r\n");
      out.write("  ");

	String id = session.getId();
	String usuario = (String) session.getAttribute("usuario");
  
      out.write("\r\n");
      out.write("\t<body onload=\"inicializa();ocultaSubMenu()\" onunload=\"GUnload()\">\r\n");
      out.write("\t");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "hidden.jsp", out, false);
      out.write("\r\n");
      out.write("\t<div id='page_wrapper'>\r\n");
      out.write("\t\r\n");
      out.write("\t");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "cabecera.jsp", out, false);
      out.write("\r\n");
      out.write("\t\r\n");
      out.write("\t");
 if(usuario == null) { 
      out.write("\r\n");
      out.write("\t\t");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "menu.jsp", out, false);
      out.write('\r');
      out.write('\n');
      out.write('	');
 } else { 
      out.write("\r\n");
      out.write("\t\t");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "menu_user.jsp", out, false);
      out.write('\r');
      out.write('\n');
      out.write('	');
 } 
      out.write("\r\n");
      out.write("\t\r\n");
      out.write("\t<div id='content_wrapper'>\r\n");
      out.write("\t\r\n");
      out.write("\t<div class='spacer'></div> \r\n");
      out.write("\t\r\n");
      out.write("\t<div id='contenido'>\r\n");
      out.write("\t\t<div id=\"contenedorServicioCallejero\">\r\n");
      out.write("\t\t\r\n");
      out.write("\t\t\t<div id=\"busqsimple\">\r\n");
      out.write("\t\t\t\t<fieldset>\r\n");
      out.write("\t\t\t\t<legend>Buscar en callejero</legend>\r\n");
      out.write("\t\t\t\t<div class='spacer'></div>\r\n");
      out.write("\t\t\t\t\t<form action=\"#\" onsubmit=\"showAddress(this.direccion.value); return false\" style=\"height:105px\">\r\n");
      out.write("\t\t\t\t\t\t<div style=\"padding-bottom: 14%;\">\r\n");
      out.write("\t\t\t\t\t\t\t<input type=\"text\" id=\"direccion\" name=\"direccion\" size=\"40\" \r\n");
      out.write("\t\t\t\t\t\t\t\ttitle=\"Introduce lugar o direccion a buscar\"/>\r\n");
      out.write("\t\t\t\t\t\t\t<p>Ejemplo: lugar o direccion, ciudad</p>\r\n");
      out.write("\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\r\n");
      out.write("\t\t\t\t\t\t<div style=\"float: right\">\r\n");
      out.write("\t\t\t\t\t\t\t<input type=\"reset\" value=\"Reset\" class=\"mybtn\" title=\"Borrar campos\"\r\n");
      out.write("\t\t\t\t\t\t\t\tonmouseover=\"goLite(this)\" onmouseout=\"goDim(this)\"/>\r\n");
      out.write("\t\t\t\t\t\t\t<input class=\"mybtn\" type=\"submit\" value=\"Buscar!\" title=\"Haz click para buscar\"\r\n");
      out.write("\t\t\t\t\t\t\t\tonmouseover=\"goLite(this)\" onmouseout=\"goDim(this)\"/>\r\n");
      out.write("\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t</form>\r\n");
      out.write("\t\t\t\t</fieldset>\t\r\n");
      out.write("\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\r\n");
      out.write("\t\t\t<div id=\"busqruta\">\r\n");
      out.write("\t\t\t\t<fieldset>\r\n");
      out.write("\t\t\t\t<legend>C&oacute;mo llegar a</legend>\r\n");
      out.write("\t\t\t\t\t<form action=\"#\" onsubmit=\"setDirections(this.desde.value, this.hasta.value, this.locale.value); return false\" style=\"height:105px\">\r\n");
      out.write("\t\t\t\t\t<div class='spacer'></div>\r\n");
      out.write("\t\t\t\t\t<div>\r\n");
      out.write("\t\t\t\t\t\t<div style=\"float:left width:60%\">\r\n");
      out.write("\t\t\t\t\t\t\t<div class=\"formruta\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<label for=\"desde\">Desde&nbsp;</label>\r\n");
      out.write("\t\t\t\t\t\t\t\t<input type=\"text\" id=\"desde\" name=\"desde\" size = \"25\"/>\r\n");
      out.write("\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t\t<div class=\"formruta\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<label for=\"hasta\">Hasta</label>\r\n");
      out.write("\t\t\t\t\t\t\t\t<input type=\"text\" id=\"hasta\" name=\"hasta\" size = \"25\"/>\r\n");
      out.write("\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t</div>\t\r\n");
      out.write("\t\t\r\n");
      out.write("\t\t\t\t\t\t<div>\r\n");
      out.write("\t\t\t\t\t\t\t<select id=\"locale\" name=\"locale\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<option value=\"es\" selected=\"selected\">Espa&ntilde;ol</option>\r\n");
      out.write("\t\t\t\t\t\t\t\t<option value=\"en\">Ingl&eacute;s</option>\r\n");
      out.write("\t\t\t\t\t\t\t\t<option value=\"fr\">Franc&eacute;s</option>\r\n");
      out.write("\t\t\t\t\t\t\t\t<option value=\"de\">Alem&aacute;n</option>\r\n");
      out.write("\t\t\t\t\t\t\t\t<option value=\"ja\">Japon&eacute;s</option>\t\t\t    \r\n");
      out.write("\t\t\t\t\t\t\t</select>\t\t\r\n");
      out.write("\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t<div class='spacer'></div> <div class='spacer'></div> <div class='spacer'></div>\r\n");
      out.write("\t\t\t\t\t\t<div style=\"float: right; padding-top:5%;\">\r\n");
      out.write("\t\t\t\t\t\t\t<input type=\"reset\" value=\"Reset\" class=\"mybtn\" \r\n");
      out.write("\t\t\t\t\t\t\tonmouseover=\"goLite(this)\" onmouseout=\"goDim(this)\" title=\"Borrar campos\"/>\r\n");
      out.write("\t\t\t\t\t\t\t<input type=\"submit\" value=\"Guiame!\" class=\"mybtn\"\r\n");
      out.write("\t\t\t\t\t\t\tonmouseover=\"goLite(this)\" onmouseout=\"goDim(this)\" title=\"Reiniciar valores\"/>\r\n");
      out.write("\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t</form>\r\n");
      out.write("\t\t\t\t\t\r\n");
      out.write("\t\t\t\t</fieldset>\r\n");
      out.write("\t\t\t</div>\r\n");
      out.write("\t</div>\r\n");
      out.write("\t<div class='spacer' style=\"padding-top: 40px;\"></div>\r\n");
      out.write("\t<div style=\"clear:both;padding-top: 20px\">\r\n");
      out.write("\t\t<table>\r\n");
      out.write("\t\t\t<tr>\r\n");
      out.write("\t\t\t\t<td class= \"centrado\"><h4>Mapa</h4></td>\r\n");
      out.write("\t\t\t\t<td class= \"centrado\"><h4>Ruta a seguir</h4></td>\r\n");
      out.write("\t\t\t</tr>\r\n");
      out.write("\t\t\t<tr>\r\n");
      out.write("\t\t\t\t<td valign=\"top\"><div id=\"map\" style=\"width: 430px; height: 495px\"></div></td>\r\n");
      out.write("\t\t\t\t<td valign=\"top\"><div id=\"directions\" style=\"width: 275px\"></div></td>\r\n");
      out.write("\t\t\t</tr>\r\n");
      out.write("\t\t</table>\r\n");
      out.write("\t</div>\r\n");
      out.write("\t</div>\r\n");
      out.write("\t\r\n");
      out.write("\t<div class='spacer'></div>\r\n");
      out.write("\t\r\n");
      out.write("\t</div>\r\n");
      out.write("\t\r\n");
      out.write("\t");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "pie.html", out, false);
      out.write("\r\n");
      out.write("\t\r\n");
      out.write("\t</div>\r\n");
      out.write("\t\r\n");
      out.write("\t</body>\r\n");
      out.write("\t\r\n");
      out.write("\t</html>\r\n");
      out.write("\t");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try { out.clearBuffer(); } catch (java.io.IOException e) {}
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}
